package com.lune.blog.base.constants;


/**
 * @author yanjizhw@163.com
 * @date 2021/10/9 15:59
 * @since 1.0.0
 * 描述 权限相关常量
 */
public class AuthConstant {

    public static final String AUTHORITY_PREFIX = "ROLE_";

    public static final String AUTHORITY_CLAIM_NAME = "authorities";

    /**
     * 平台唯一标识
     */
    public static final String CLIENT_ID = "client-app";

    /**
     * 平台给应用分配的密钥
     */
    public static final String CLIENT_SECRET = "123456";

    /**
     * 使用范围
     */
    public static final String SCOPE = "all";

    /**
     *  授权类型
     */
    public static final String[] GRANT_TYPE = {"password", "refresh_token"};

    /**
     *  资源路径
     */
    public static final String CLASSPATH_RESOURCE = "jwt.jks";

    /**
     *  别名
     */
    public static final String ALIAS = "jwt";

}
